trait is DEPRECATED
Documentation for trait is DEPRECATED
assembled from the following types:
class Routine
From Routine
(Routine) trait is DEPRECATED
multi sub trait_mod:<is>(Routine , :!)
Marks a routine as deprecated, optionally with a message what to use instead.
This code
sub f() is DEPRECATED('the literal 42')say f();
produces this output:
42Saw 1 occurrence of deprecated code.================================================================================Sub f (from GLOBAL) seen at:deprecated.p6, line 2Please use the literal 42 instead.--------------------------------------------------------------------------------Please contact the author to have these occurrences of deprecated codeadapted, so that this message will disappear!